<template>
  <Portlet title="异常处理">
    <!--<table class="table show-table table-align-middle">-->
      <!--<tbody>-->
      <!--<tr v-for="(item, index) in chAbnormalSchemes" :key="index">-->
        <!--<td width="100">处理方案：</td>-->
        <!--<td width="25%">{{item.abnormalSchemeCode | filterDataBaseDictionary}}</td>-->
        <!--<td width="100">处理描述:</td>-->
        <!--<td colspan="3">{{item.abnormalRemark}}</td>-->
      <!--</tr>-->
      <!--</tbody>-->
    <!--</table>-->
    <el-form label-width="115px" label-position="left">
      <el-row :gutter="15" v-for="(item, index) in chAbnormalSchemes" :key="index">
        <el-col :md="12" :lg="8" :xl="6">
          <el-form-item label="处理方案：">
            <span>{{item.abnormalSchemeCode | filterDataBaseDictionary}}</span>
          </el-form-item>
        </el-col>
        <el-col :md="24" :lg="16" :xl="12">
          <el-form-item label="处理描述：">
            <span>{{item.abnormalRemark}}</span>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
  </Portlet>
</template>

<script>
import {dotData} from '@/utils'
import {filterDataBaseDictionary} from '@//filters'
export default {
  name: 'AbnormalModule',
  filters: {
    filterDataBaseDictionary
  },
  props: {
    detail: {
      type: Object,
      required: true
    }
  },
  data() {
    return {}
  },
  computed: {
    chAbnormalSchemes() {
      return dotData(this.detail, 'chAbnormalSchemes') || []
    }
  }
}
</script>
